<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

/*Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});*/
Route::post("/authorization/loginorup","WeChatController@Authorization");
Route::post("/decode/phonenumber","WeChatController@dePhone");
Route::post("/coupon/list","CouponController@list");
Route::post("/coupon/details","CouponController@details");
Route::any("/coupon/order","CouponController@order");
Route::post("/coupon/order/detail","CouponController@orderDetail");
Route::any("/coupon/notifyurl","CouponController@notifyurl");
Route::any('/coupon/order/list','CouponController@orderList');
Route::any('/coupon/shop/staffs','CouponController@staffs');
Route::any('/coupon/find/staffs','CouponController@searchStaff');
Route::any('/coupon/set/staffs','CouponController@setStaff');
Route::any('/coupon/staff/del','CouponController@delStaff');
Route::any('/coupon/auth','CouponController@authShop');
Route::any('/coupon/set/tel','CouponController@dePhone');
Route::any("/coupon/sys/use","CouponController@useSys");
Route::any('/coupon/do/propose',"CouponController@propose");
Route::any('/coupon/extract/log',"CouponController@extractLog");
Route::any('/coupon/shopinfo/get',"CouponController@shopInfo");
Route::any('/coupon/edit/info/shopname','CouponController@editShopName');
Route::any('/coupon/shop/order/list','CouponController@shopOrderList');
Route::any("/meal/place/order",'MealOrderController@placeOrder');
Route::any("/meal/placemarkup/order",'MealOrderController@markup');
Route::any('/meal/find/user','MealOrderController@findUser');
Route::any('/meal/bangdai/log/user','MealOrderController@bangdailog');
Route::any('/meal/apply/bangdai','MealOrderController@applybangd');
Route::any('/meal/apply/zhuansong','MealOrderController@applybangdLezs');
Route::any('/meal/apply/notify','MealOrderController@notifyUrl');
Route::any('/meal/markup/notify','MealOrderController@MarkupNotifyUrl');
Route::any('/card/notifyurl/','MealCardController@notifyUrl');
Route::any('/meal/get/neworder','MealOrderController@newOrder');
Route::any('/meal/get/orderlist','MealOrderController@getNews');
Route::any("/meal/entrust/detail",'MealOrderController@detailEntrust');
Route::any("/meal/entrust/action",'MealOrderController@entrustAction');
Route::any("/backfund",'MealOrderController@backfund');
Route::any("/get/account",'MealOrderController@getAmount');
Route::any("/get/city",'CouponController@test');
Route::any("/save/sharesource",'MealCardController@saveSource');
Route::any("/message",'WeChatController@getResult');
Route::any("/send/redpack",'MealCardController@buyCardEnd');
Route::any("/get/qrcode",'WeChatController@qrcode');
Route::any("/test/qrcode",'WeChatController@test');
Route::any("/get/help/delivery",'MealOrderController@circleDelivery');
Route::any("/get/help/address",'MealOrderController@getAddress');
Route::any("/meal/place/cart/order",'MealOrderController@cartOrder');
Route::any("/meal/shops",'MealShopController@shopLists');
Route::any("/receive/get/info",'WeChatController@receiveRedPack');// 领红包
Route::any("/wait/get/info",'WeChatController@lingqupack');// 领红包
Route::any("/get/circle/name",'MealOrderController@getCircleName');// 获取商圈名称
Route::any("/get/user/orders",'MealOrderController@orderLists');// 我的订单
Route::any("/scan/qrcode",'MealOrderController@scanQrcode');// 取餐
Route::any("/card/list",'MealCardController@cardBuys');// 饭卡列表
Route::any("/index/data",'WeChatController@homeData');// 首页数据
Route::any("/cate/list",'MealShopController@cateList');// 餐品列表
Route::any("/order/check",'MealOrderController@orderbuyInfo');// 下单检测
Route::any("/buy/card",'MealCardController@order');// 买卡
Route::post("/scan/codecheck",'MealOrderController@scanCodeCheck');// 第三方核销
